@layout("/common/_container.html",{js:["/assets/modular/player/playerAdvert.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">代理商推广统计</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            @if(shiro.isAdmin()){
                            <div class="layui-inline">
                                <select name="归属部门"  id="id">
                                    <option value="">全部</option>
                                    @for( dept in deptList!){
                                     <option value="${dept.id}">${dept.name}</option>
                                    @}
                                </select>
                            </div>

                                <div class="layui-inline">
                                    <input id="userName" class="layui-input" type="text" placeholder="名称"/>
                                </div>
                            @}
                            <!--<div class="layui-inline">
                                <input id="introducerNo" class="layui-input" type="text" placeholder="推广人编号"/>
                            </div>
                            <div class="layui-inline">
                                <input id="introducerName" class="layui-input" type="text" placeholder="推广人昵称"/>
                            </div>
                            <div class="layui-inline">
                                <select name="归属代理"  id="deptid">
                                    <option value="">全部代理</option>
                                    @for( agent in agentList! ){
                                        <option value="${agent.deptId}">${agent.name}</option>
                                    @}
                                </select>
                            </div>-->
                            <div class="layui-inline">
                                <label class="layui-form-label">统计时间</label>
                                <div class="layui-input-inline" style="width: 100px;">
                                    <input type="text" name="createTimeMin" id="createTimeMin"  autocomplete="off" class="layui-input">
                                </div>
                                <div class="layui-form-mid">-</div>
                                <div class="layui-input-inline" style="width: 100px;">
                                    <input type="text" name="createTimeMax" id="createTimeMax"  autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnDetail" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>查看推广用户</button>
                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="playerTable" lay-filter="playerTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="user">查看用户</a>
</script>
<script type="text/html" id="statusTpl">
    <input type="checkbox" lay-filter="status" value="{{d.id}}" lay-skin="switch"  lay-text="启用|冻结" {{d.status=='1'?'checked':''}} />
</script>

@}